package com.mall.www.mapper;

import com.mall.www.entity.IntegralItem;
import org.apache.ibatis.annotations.Param;

public interface IntegralItemMapper {
    int deleteByPrimaryKey(Long integralItemId);

    int insert(IntegralItem record);

    int insertSelective(IntegralItem record);

    IntegralItem selectByPrimaryKey(Long integralItemId);

    int updateByPrimaryKeySelective(IntegralItem record);

    int updateByPrimaryKey(IntegralItem record);

    IntegralItem selectByUserIdAndChannelId(@Param("userId") Long userId, @Param("channelId") Long channelId);

    IntegralItem selectByUserIdAndOrderId(@Param("userId") Long userId, @Param("orderId") Long orderId);
}